package com.caesar.Set;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caesar
 * @date 2025/7/16
 * @Description:
 * @apiNote
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Comparable{
    private int id;
    private String name;
    private int score;
    private int age;


    @Override
    public int compareTo(Object o) {
        Student s = (Student) o;
        return Integer.compare(this.id,s.id);
    }
}
